package cn.edu.njpi.mapper;

import cn.edu.njpi.model.TClass;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TClassMapper {
    int deleteByPrimaryKey(Integer classId);

    int insert(TClass record);

    int insertSelective(TClass record);

    TClass selectByPrimaryKey(Integer classId);

    int updateByPrimaryKeySelective(TClass record);

    int updateByPrimaryKey(TClass record);

    List<TClass> getAllClass();

    List<TClass> selectClassByCollageId(Integer collageId);

    TClass selectClassByClassNameAndCollageId(TClass tClass);
}